package org.lex.swing.tab;

import java.awt.Component;

import javax.swing.Icon;

public class IconTitleTab implements Tab, HasTitle, HasIcon, HasToolTip {
	private final Component component;
	private final LabelHeader header;

	public IconTitleTab(Component component) {
		this.component = component;
		this.header = new LabelHeader();
	}

	public Component getComponent() {
		return component;
	}

	public Component getHeader() {
		return header;
	}

	public String getTitle() {
		return header.getTitle();
	}

	public void setTitle(String title) {
		this.header.setTitle(title);
	}

	public Icon getIcon() {
		return header.getIcon();
	}

	public void setIcon(Icon icon) {
		header.setIcon(icon);
	}

	public String getToolTip() {
		return header.getToolTip();
	}

	public void setToolTip(String tip) {
		header.setToolTip(tip);
	}
}
